package com.hy;

import java.util.*;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * author: Mr.Du
 * Date: 2023/10/8
 * Time: 16:20
 */
public class SolveNQueens {

    public static void main(String[] args) {
        int n = 10; // 填充的字符数量
        char fillChar = '.'; // 要填充的字符

        List<Character> charList = new ArrayList<>(Collections.nCopies(n, fillChar));

        // 打印填充后的 List
        for (char ch : charList) {
            System.out.print(ch);
        }
    }
}
